package com.ruoyi.web.controller.wlsggk;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.waterdrop.wlsggk.pojo.MaterialReplenishmentLog;
import com.waterdrop.wlsggk.service.MaterialReplenishmentLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 分仓库补货量日志操作处理
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/wlsggk/MaterialReplenishmentLog")
public class MaterialReplenishmentLogController extends BaseController {

    @Autowired
    private MaterialReplenishmentLogService materialReplenishmentLogService;


    /**
     * 获取分仓库补货量日志列表
     */
    @GetMapping("/list")
    public TableDataInfo list(MaterialReplenishmentLog MaterialReplenishmentLog, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime) {
        startPage();
        List<com.waterdrop.wlsggk.pojo.MaterialReplenishmentLog> list = materialReplenishmentLogService.selectMaterialReplenishmentLogList(MaterialReplenishmentLog, startTime, endTime);
        return getDataTable(list);
    }

    /**
     * 删除分仓库补货量日志信息
     */
/*
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(wlsggkMaterialReplenishmentLogService.deleteWlsggkMaterialReplenishmentLog(ids));
    }
*/


}


